const routes = [
  {
    path: "/",
    name: "index",
    component: () => import("../views/portal/Index.vue"),
    children: [
      {
        path: "/login",
        name: "login",
        component: () => import("../views/portal/Login.vue"),
      },
      {
        path: "/register",
        name: "register",
        component: () => import("../views/portal/Register.vue"),
      },
    ],
  },

  {
    path: "/home",
    name: "home",
    component: () => import("../views/home/Home.vue"),
  },
  {
    path: "/user_center",
    name: "user_center",
    component: () => import("../views/user/UserCenter.vue"),
  },
  {
    path: "/user/edit",
    name: "user_edit",
    component: () => import("../views/user/EditInfo.vue"),
  },
];

export default routes;
